import React from 'react';
import { useRecoilState } from 'recoil';
import countState from '@/models/count.model';
import styles from './index.module.less';

const Home: React.FC = () => {
  const [count, setCount] = useRecoilState(countState);

  return (
    <div className={styles.App}>
      <div className={styles.card}>
        <button onClick={() => setCount((count) => count + 1)}>点击数字增加：{count}</button>
      </div>
    </div>
  );
};

export default Home;
